package com.mdd.common.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;


@Data
@EqualsAndHashCode(callSuper = true)
@TableName("order_pre_authorization_record")
@ApiModel("预授权记录实体")
public class PreAuthorizationRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "订单编号")
    private Long orderId;

    @ApiModelProperty(value = "授权码")
    private String preAuthorizationNo;

    @ApiModelProperty(value = "授权金额")
    private BigDecimal preAuthorizationMeny;

    @ApiModelProperty(value = "状态：1、授权中 2、授权失效 3、解除授权")
    private Long status;

}
